﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using EventReminder.Common;

namespace EventReminder.Server.SelfHost
{
    [ServiceContract]
    public interface IEventReminderService
    {
        [OperationContract]
        string Login(string userName, string password);

        [OperationContract]
        string Register(string userName, string password, string firstName, string lastName, string email);

        [OperationContract]
        IEnumerable<EventData> GetEvents(DateTime day, string sessionId);

        [OperationContract]
        void AddEvent(EventData e, string sessionId);

        [OperationContract]
        void ModifyEvent(EventData old, EventData update, string sessionId);

        [OperationContract]
        void DeleteEvent(EventData e, string sessionId);

        [OperationContract]
        void Logout(string sessionId);
    }
}
